<script setup>
import { StagewiseToolbar } from '@stagewise/toolbar-vue';
import { VuePlugin } from '@stagewise-plugins/vue';
// App.vue是应用的根组件
</script>

<template>
  <router-view />
  <StagewiseToolbar :config="{ plugins: [VuePlugin] }" />
</template>

<style>
/* 全局样式 */
:root {
  /* 主色调 */
  --primary-color: #3E78B2;
  --secondary-color: #FF9A76;
  --accent-color: #4ECDC4;
  --dark-color: #1A2634;
  --light-color: #f8f9fa;
  
  /* 渐变 */
  --primary-gradient: linear-gradient(135deg, #3E78B2, #4ECDC4);
  --secondary-gradient: linear-gradient(135deg, #FF9A76, #FF5E62);
  --dark-gradient: linear-gradient(135deg, #1A2634, #364156);
  
  /* 阴影 */
  --card-shadow: 0 4px 20px rgba(62, 120, 178, 0.1);
  --hover-shadow: 0 8px 30px rgba(62, 120, 178, 0.2);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #333;
  background-color: #f5f8fc;
}

#app {
  width: 100%;
  height: 100vh;
}

/* 通用样式 */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 600;
  color: #1A2634;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

/* 卡片样式 */
.card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--hover-shadow);
}

/* 按钮样式增强 */
.el-button--primary {
  background: var(--primary-gradient);
  border: none;
  }

.el-button--primary:hover,
.el-button--primary:focus {
  background: var(--primary-color);
  border: none;
  box-shadow: var(--hover-shadow);
  }

/* 过渡动画 */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

.slide-fade-enter-active {
  transition: all 0.3s ease-out;
}

.slide-fade-leave-active {
  transition: all 0.3s cubic-bezier(1, 0.5, 0.8, 1);
}

.slide-fade-enter-from,
.slide-fade-leave-to {
  transform: translateX(20px);
  opacity: 0;
}
</style>
